<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="PDSW-2014">
    <meta name="author" content="Bonez">
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
	<!-- Bootstrap core CSS -->
    <link href="<c:url value="/recursos/css/bootstrap.css" />" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="<c:url value="/recursos/css/starter-template.css" />" rel="stylesheet">

	
<title>Gerenciador Pessoal</title>
</head>

<body>
<c:url var="root" value="/usuario"/>
	<div class="container"><!--organiza tamanho container automaticamente pelo bootstrap-->
	
		<div class="container">
			<div class="jumbotron">
			
				<div class="form-group">
					<img class="img-responsive" src="<c:url value="/recursos/images/logo1.png" />" alt="Gerenciador pessoal"/>
				</div>

			<c:url var="actionUrl" value="/cadastrar"/>
				<form action="${actionUrl}" method="post">
					<table border="0">
						<tr>
							<td>Nome</td>
							<td>
								<input type="text" name="nome" value="${usuario.nome}"/>
								<form:errors path="usuario.nome" cssStyle="color:red"/>
							</td>
						</tr>
						<tr>
							<td>Email</td>
							<td>
								<input type="text" name="email" value="${usuario.email}"/>
								<form:errors path="usuario.senha" cssStyle="color:red"/>
							</td>
						</tr>
						<tr>
							<td>
								Senha
							</td>
							<td>
								<input type="text" name="senha" value="${senha}"/>
							</td>
						</tr>
					</table>
					<input type="hidden" name="codigo" value="${usuario.codigo}" />
					<input type="submit" value="Salvar">
				</form>
				
			</div>	
		</div>
	</div>		
	
	<!-- /.container -->


    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="https://code.jquery.com/jquery-1.10.2.min.js"></script>
</body>
</html>